package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    //根据分页查询菜品
    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);
    //添加菜品
    void save(Dish dish);
    //根据主键查询
    Dish findById(Long id);
    //更新菜品
    void update(Dish dish);
    //删除菜品
    void deleteByIds(Long[] ids);
    //停售
    void status(Integer status, Long[] ids);
    //回显
    List<Dish> findList(Long categoryId, Integer status);
    //搜索
    List<Dish> findList(Long categoryId,String name, Integer status);

}
